package com.yunji.storage.dao;

import com.yunji.common.base.IBaseDao;
import com.yunji.storage.bo.ExistsStockBO;
import com.yunji.storage.bo.StockListQueryBO;
import com.yunji.storage.bo.StockSelectQueryBO;
import com.yunji.storage.domain.StockDO;

import java.util.List;


/**
 * @Project: yunji-coffee
 * @Package: com.yunji.storage.dao
 * @Title: StockDao
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-10-23 17:04:22      V1.0        HuaAo       新建类
 */

public interface IStockDao extends IBaseDao<StockDO> {

    StockDO selectStock(StockDO stock);

    boolean create(StockDO stock);

    boolean edit(StockDO stock);

    boolean updateStock(StockDO stock);

    boolean deleteEmptyStock(Long... ids);

    StockDO select(StockSelectQueryBO bo);

    List<StockDO> search(StockListQueryBO bo);

    boolean existsStock(ExistsStockBO bo);
}